package com.easybuy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easybuy.dao.MemberDao;
import com.easybuy.entity.Member;
import com.easybuy.service.MemberService;

@Service("memberService")
public class MemberServiceImpl implements MemberService {

	@Autowired
	private MemberDao memberDao;

	public void add(Member member) {
		memberDao.add(member);
	}

	public List<Member> getList() {
		return memberDao.getList();
	}

	public Member login(String username, String pwd) {
		return memberDao.login(username, pwd);
	}

}
